<%-- 
    Document   : login_validasi
    Created on : Nov 10, 2011, 3:22:51 PM
    Author     : Renaldo Malau
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<jsp:useBean id="kontrol" scope="application" class="kontroler.kontrolerLogin" />
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>

        <%
        String user= (String) session.getAttribute("sesiUser");
        String password= (String) session.getAttribute("sesiPass");

        if (!kontrol.otentikasi(user,password)){
            String msg="Silakan Login dulu";
            response.sendRedirect("login.jsp?msg="+msg);
        }
%>
    </body>
</html>
